"""
$Id: test.py 2 2007-03-04 19:08:44Z sidnei.da.silva $
"""

import unittest
import doctest
import utils
from concurrency.parser import parse
from concurrency import ExecutionContext

def test_suite():
    suite = unittest.TestSuite()
    kw = {}
    kw['optionflags'] = doctest.ELLIPSIS | doctest.REPORT_NDIFF
    kw['globs'] = globals()
    tests = [
        doctest.DocFileSuite('parser.txt', **kw),
        doctest.DocFileSuite('execution.txt', **kw)
        ]
    for test in tests:
        suite.addTest(test)
    return suite

if __name__ == '__main__':
    unittest.main(defaultTest='test_suite')
